#pragma once
#include <ntddk.h>

EXTERN_C_START

POBJECT_TYPE IoDeviceObjectType;

NTSTATUS ObReferenceObjectByName(
  _In_ PUNICODE_STRING ObjectName,
  _In_ ULONG Atrributes,
  _In_ PACCESS_STATE PassedAccessState,
  _In_ ACCESS_MASK DesiredAccess,
  _In_ POBJECT_TYPE ObjectType,
  _In_ KPROCESSOR_MODE AccessMode,
  _In_opt_ PVOID ParseContext,
  _Out_ PVOID *Object
);

EXTERN_C_END